package com.glsc.ngateway.common.base.domain.mysql.gateway.system;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Data
@Table(name = "t_gw_system_group")
@org.hibernate.annotations.Table(appliesTo = "t_gw_system_group",comment = "业务隶属团队信息表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SystemGroup implements Serializable {

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", columnDefinition = "int comment '主键'")
    private Integer id;

    @ApiModelProperty(value = "项目ID")
    @Column(name = "op_id", columnDefinition = "int comment '项目ID'")
    private Integer opId;

    @ApiModelProperty(value = "团队id")
    @Column(name = "group_id", columnDefinition = "varchar(20) comment '团队id'")
    private String groupId;
}
